import * as types from './mutations-type'

export const selectPlay = function (context, {list, index}) {
  // console.log(list[0])
  // console.log(index)
  console.log(list)
  context.commit(types.SET_SEQUENCE_LIST, list)
  context.commit(types.SET_PLAYLIST, list)
  context.commit(types.SET_CURRENT_INDEX, index)
  context.commit(types.SET_FULL_SCREEN, true)
  context.commit(types.SET_PLAYING_STATE, true)
}
